home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / DocShell / ErrMsgs.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  46.0 KB  |  1,139 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ErrMsgs.r
  3.  
  4.     Contains:    Error Messages for the document shell
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.         
  12.          <7>      11/19/96    CC        1354893 Messages for errors during move of
  13.                                     frames.
  14.          <6>     9/27/96    CC        1382481: Added
  15.                                     kODErrCannotFulfillDragPromise.
  16.          <5>      9/4/96    EL        1288124: kODErrCannotAcquirePart is not
  17.                                     used and can be removed.
  18.          <4>     6/18/96    NP        1354567: No error message
  19.                                     kODErrInvalidPermissions.
  20.          <3>    .04.1996    NP        1302783, 1320564, 1333505: misspellings in
  21.                                     error dialog.
  22.          <2>     3/22/96    CC        1330388: Added kODErrCannotDeferClone
  23.         <28>    30/10/95    NP        1295276,1297278,1297281: Problems with
  24.                                     reporting private errors.
  25.         <27>    10/24/95    jpa        1293441: Added kODErrFatalContainerError
  26.         <26>    23/10/95    NP        1293899, 1293026: Error messages and
  27.                                     mapping tweaks.
  28.         <25>    17/10/95    NP        1292926: Duplicate entry 79 in STR#
  29.                                     resource.
  30.         <24>    12/10/95    NP        1284573: Final mods to error messages and
  31.                                     mappings.
  32.         <23>     10/9/95    VL        1288571: Added message for
  33.                                     kODErrNoSysTranslationFacility.
  34.         <22>     10/4/95    NP        1282801, 1285707, 1287830: Error
  35.                                     codes/messages changes.
  36.         <21>     9/29/95    eeh        1287262: use ShellDef.h
  37.         <20>     9/18/95    CG        1285279 GM: kODPartNotWrapper should be
  38.                                     kODErrPartNotWrapper.
  39.         <19>     9/12/95    DM        1278291: kODErrInvalidName ->
  40.                                     kODErrInvalidNSName
  41.         <18>     9/11/95    NP        Oops. Fixed file so it compiles.
  42.         <17>     9/11/95    NP        1281307: Need MacOS error mssgs. 1282801:
  43.                                     Some error messages missing (partial).
  44.         <16>      9/8/95    TÇ        1252120 FB1: New documents saved w/ StdFile
  45.                                     & trashed if closed w/o saving
  46.         <15>      9/8/95    VL        1282012: Removed kODErrDraftNotExists and
  47.                                     kODErrContainerNotExists.
  48.         <14>      9/8/95    jpa        Removed obsolete errors. Removed "invalid"
  49.                                     from names of errors that are actually
  50.                                     still valid. [1281354]
  51.         <13>      9/8/95    TÇ        1263308 FB3:Cryptic error msg when making
  52.                                     stationery from part not in the Editors
  53.                                     folder
  54.         <12>     8/24/95    EL        1278212: kODErrNoDocumentProperties no
  55.                                     longer needed.
  56.         <11>     8/21/95    NP        1274946:
  57.                                     kODErrInvalidCanvas->kODErrCanvasNotFound
  58.         <10>     8/18/95    NP        1274946: Had to remove some stuff. Still
  59.                                     need to fix up this file.
  60.          <9>     8/16/95    NP        1274946: ErrorDef.idl problems.
  61.          <8>      6/9/95    TJ        Include ErrorDef.r instead of ErrorDef.xh
  62.          <7>      6/1/95    jpa        Added msg for kODErrCantLoadSOMClass. Fixed
  63.                                     messages for kODErrCantCreatePart and
  64.                                     kODErrCantCreateContainer. [1242839]
  65.          <6>     5/25/95    VL        1251403: Multithreading naming support.
  66.          <5>     5/18/95    CC        1250280: Track rename to
  67.                                     kODErrNullFacetInput.
  68.          <4>     4/14/95    TÇ        #1221135    DR/BB: When OpenDoc Libraries
  69.                                     folder is missing, OpenDoc reports generic
  70.                                     error 84
  71.                                     #1239535    DR/BB: When Editors folder is
  72.                                     missing, OpenDoc reports undefined error
  73.                                     173.
  74.          <3>     3/28/95    TÇ        #1196779 BB: Better error message for
  75.                                     Saving a Copy onto oneself
  76.          <2+>     3/23/95    MS        Added "invalid error code" message strings for the 
  77.                                      following codes marked $$$$$:  kODErrAssertionFailed,
  78.                                     kODErrInvalidParameter, kODErrInvalidFrame, 
  79.                                     kODErrInvalidFacet, kODErrInvalidValue, 
  80.                                     kODErrInvalidRefCount, kODErrInvalidGraphicsSystem, 
  81.                                     kODErrTransformErr, kODErrInvalidCanvas, 
  82.                                     kODErrMemoryProblem, kODErrInvalidNSName, 
  83.                                     kODErrInvalidContainer, kODErrInvalidDocument, 
  84.                                     kODErrInvalidDraft, kODErrInvalidStorageUnit, 
  85.                                     kODErrInvalidType, kODErrInvalidProperty, 
  86.                                     kODErrInvalidID, kODErrInconsistentCloneKind, 
  87.                                     kODErrInvalidLinkKey, kODErrCannotCreateContainer, 
  88.                                     and kODErrCannotOpenContainer. Also, changed string 
  89.                                     reference for kOKErrWriteErr and kODErrZeroRefCount.
  90.                   3/22/95    MS        Added User ID message strings and Support ID 
  91.                                      placeholders for the following new error codes: 
  92.                                     kODErrPartInUse, 
  93.                                     kODErrCouldNotBindForeign Document, 
  94.                                     kODErrSystemVolumeIsFull, kODErrRefCountNotEqualOne, 
  95.                                     kODErrAllWritableVolumesAreFull, 
  96.                                     kODErrDirectoryNotHaveWriteAccess, 
  97.                                     kODErrCannotSaveACopyOntoCurrentDoc, 
  98.                                     kODErrCannotSaveACopyOntoBusyDoc, kODErrFileClosed, 
  99.                                     kODErrFileOpened, kODErrSOMException, 
  100.                                     kODErrCorruptLinkSource, kODErrCorruptLink, 
  101.                                     kODErrCannotRevealLink, 
  102.                                     kODErrCannotFindLinkSourceEdition, 
  103.                                     kODErrCannotFindLinkSource, kODErrAlreadyImportedLink,
  104.                                     kODErrLinkAlreadyExported, kODErrInvalidObjectType, 
  105.                                     kODErrInvalidPersistentObjectID, kODErrNullFacet, 
  106.                                     and kODErrIllegalNullStorageSystemInput.  
  107.          <2>     3/21/95    TÇ        Tweaked a couple of messages.
  108.          <1>    12/25/94    TÇ        first checked in
  109.          <0.4>    12/25/94    TÇ        1191189 Eliminate duplicate Def.h, Def.xh files
  110.                                     1187709 More frequent, robust and earlier error 
  111.                                     detection and reporting in the Shell.
  112.                                     Fixed resources so that they would compile with Rez.
  113.  
  114.          <0.3>    12/12/94    MS        entered more UserID error codes
  115.          <0.2>     12/5/94    MS        entered a few UserID errors for format check by Tantek
  116.          <0.1>    12/19/94    MS        alpha draft for UserID and SupportID error codes and 
  117.                                      strings
  118.  
  119.     Note(s) from Tantek:
  120.         1. Make sure to NOT put in things like
  121.              <"name">
  122.            in the middle of strings.  It doesn't work because quotes do not nest in Rez.
  123.         2. Try to make sure that Change History comments are no more than 80 chars 
  124.            per line.
  125.         3. DO NOT DELETE ANY STRINGS FROM THE STR# resources. Simply empty them out.
  126.            Like this:   ;""
  127.            This we they don't get renumbered, we don't have to try and fix up the
  128.            'errs' resources to point to the renumbered indexes into the STR# resources.
  129.         
  130.     In Progress:
  131.         
  132. */
  133.  
  134. #define SystemSevenOrBetter 1            // we want the extended types
  135. #define    SystemSevenOrLater    1            // Types.r uses this variable
  136.  
  137. #define oldTemp            // to get 'dctb' resources to rez
  138. #ifndef __TYPES_R__
  139. #include "Types.r"
  140. #endif
  141. #undef oldTemp
  142.  
  143. #ifndef _SHELLDEF_
  144. #include "ShellDef.h"
  145. #endif
  146.  
  147. #ifndef SOM_Module_OpenDoc_Errors_defined
  148. #include "ErrorDef.r"
  149. #endif
  150.  
  151. /* list mapping exception codes to user explanations */
  152.  
  153. /* See ErrorDef.idl for range information */
  154.  
  155. #define minUtilsErr -29849
  156. #define maxUtilsErr -29830
  157. #define minUIErr -29829
  158. #define maxUIErr -29827
  159. #define minShellErr -29826
  160. #define maxShellErr -29810
  161. #define minODBentoErr -29809
  162. #define maxODBentoErr -29789
  163. #define minBentoErr 1000
  164. #define maxBentoErr 1999
  165.  
  166. /*-------------------------------------errs-------------------------------------*/
  167. type 'errs' {
  168.     wide array {                                // Error list
  169.         LONGINT         whichList = 0,
  170.                     minErr = -2147483648;        // Low error number; 0 specifies STR#
  171.         LONGINT        maxErr = 2147483647;         // High error number
  172.         LONGINT;                                // Index in STR# of string
  173.     };
  174. };
  175.  
  176. resource 'errs' (kODErrUserID,purgeable) {
  177.     {    whichList, 0, kODErrUserIDStrings
  178.             ;kODErrInvalidFrame, kODErrInvalidFrame, 1
  179.             ;kODErrInvalidFacet, kODErrInvalidFacet, 1
  180.             ;kODErrIllegalNullInput, kODErrIllegalNullInput, 1
  181.             ;kODErrObjectNotInitialized, kODErrObjectNotInitialized, 1
  182.             ;kODErrOutOfMemory, kODErrOutOfMemory, 3
  183.             ;kODErrNotImplemented, kODErrNotImplemented, 1
  184.  
  185.             ;kODErrSubClassResponsibility, kODErrSubClassResponsibility, 1
  186.             ;kODErrUnsupportedExtension, kODErrUnsupportedExtension, 1
  187.             ;kODErrInvalidObjectType, kODErrInvalidObjectType, 1
  188.             ;kODErrInvalidPersistentObjectID, kODErrInvalidPersistentObjectID, 1
  189.             ;kODErrRefCountNotEqualOne, kODErrRefCountNotEqualOne, 1
  190.             ;kODErrZeroRefCount, kODErrZeroRefCount, 1
  191.             ;kODErrIteratorOutOfSync, kODErrIteratorOutOfSync, 1
  192.  
  193.             ;kODErrCannotEmbed, kODErrCannotEmbed, 8
  194.             ;kODErrKeyAlreadyExists, kODErrKeyAlreadyExists, 1
  195.             ;kODErrPartInUse, kODErrPartInUse, 45
  196.  
  197.     /* DOCSHELL PRIVATE CODES */
  198.             ;kODErrDirectoryNotHaveWriteAccess, kODErrDirectoryNotHaveWriteAccess, 10
  199.             ;kODErrCouldNotBindForeignDocument, kODErrCouldNotBindForeignDocument, 33
  200.             ;kODErrAllWritableVolumesAreFull, kODErrAllWritableVolumesAreFull, 34
  201.             ;kODErrSystemVolumeIsFull, kODErrSystemVolumeIsFull, 35
  202.             ;kODErrCannotSaveACopyOntoCurrentDoc, kODErrCannotSaveACopyOntoCurrentDoc, 36
  203.             ;kODErrCannotSaveACopyOntoBusyDoc, kODErrCannotSaveACopyOntoBusyDoc, 37
  204.             ;kODErrCannotFindSystemEditorsFolder, kODErrCannotFindSystemEditorsFolder, 70
  205.             ;kODErrCannotFindOpenDocLibrariesFolder, kODErrCannotFindOpenDocLibrariesFolder, 71
  206.             ;kODErrEditorLibraryNotFound, kODErrEditorLibraryNotFound, 74
  207.             ;kODErrCannotSaveAsOntoBusyDoc, kODErrCannotSaveAsOntoBusyDoc, 75
  208.     /* END DOCSHELL PRIVATE CODES */
  209.  
  210.             ;kODErrInvalidGraphicsSystem, kODErrInvalidGraphicsSystem, 1
  211.             ;kODErrNoShapeGeometry, kODErrNoShapeGeometry, 1
  212.             ;kODErrTransformErr, kODErrTransformErr, 1
  213.             ;kODErrCanvasNotFound, kODErrCanvasNotFound, 1
  214.             ;kODErrUnsupportedFramePositionCode, kODErrUnsupportedFramePositionCode, 1
  215.             ;kODErrIllegalNullPartInput, kODErrIllegalNullPartInput, 1
  216.             ;kODErrIllegalNullTransformInput, kODErrIllegalNullTransformInput, 1
  217.             ;kODErrIllegalNullStorageSystemInput, kODErrIllegalNullStorageSystemInput, 1
  218.             ;kODErrInvalidBlock, kODErrInvalidBlock, 45
  219.  
  220.             ;kODErrUnsupportedPosCode, kODErrUnsupportedPosCode, 1
  221.             ;kODErrInvalidPermissions, kODErrInvalidPermissions, 14
  222.             ;kODErrInvalidNSName, kODErrInvalidNSName, 1
  223.             ;kODErrInvalidStorageUnit, kODErrInvalidStorageUnit, 1
  224.             ;kODErrNoValueAtThatIndex, kODErrNoValueAtThatIndex, 1
  225.             ;kODErrCannotAddProperty, kODErrCannotAddProperty, 1
  226.  
  227.             ;kODErrUnfocusedStorageUnit, kODErrUnfocusedStorageUnit, 1
  228.             ;kODErrIllegalNullPropertyInput, kODErrIllegalNullPropertyInput, 1
  229.             ;kODErrIllegalNullSUCursorInput, kODErrIllegalNullSUCursorInput, 1
  230.             ;kODErrInvalidStorageUnitRef, kODErrInvalidStorageUnitRef, 1
  231.             ;kODErrInvalidStorageUnitKey, kODErrInvalidStorageUnitKey, 1
  232.             ;kODErrStorageUnitNotLocked, kODErrStorageUnitNotLocked, 1
  233.             ;kODErrNoDraftProperties, kODErrNoDraftProperties, 1
  234.  
  235.             ;kODErrCannotCreateFrame, kODErrCannotCreateFrame, 1
  236.             ;kODErrCannotAcquireFrame, kODErrCannotAcquireFrame, 1
  237.             ;kODErrCannotCreatePart, kODErrCannotCreatePart, 16
  238. /*            ;kODErrCannotAcquirePart, kODErrCannotAcquirePart, 1    */
  239.             ;kODErrCannotCreateLink, kODErrCannotCreateLink, 1
  240.             ;kODErrCannotAcquireLink, kODErrCannotAcquireLink, 1
  241.             ;kODErrInvalidID, kODErrInvalidID, 1
  242.             ;kODErrInconsistentCloneKind, kODErrInconsistentCloneKind, 1
  243.             ;kODErrInvalidCloneKind, kODErrInvalidCloneKind, 1
  244.             ;kODErrInvalidBelowDraft, kODErrInvalidBelowDraft, 1
  245.  
  246.             ;kODErrCannotCollapseDrafts, kODErrCannotCollapseDrafts, 18
  247.             ;kODErrNonEmptyDraft, kODErrNonEmptyDraft, 1
  248.             ;kODErrNoPreviousDraft, kODErrNoPreviousDraft, 1
  249.             ;kODErrOutstandingDraft, kODErrOutstandingDraft, 1
  250.             ;kODErrInvalidDraftID, kODErrInvalidDraftID, 1
  251.             ;kODErrCannotChangePermissions, kODErrCannotChangePermissions, 1
  252.             ;kODErrContainerExists, kODErrContainerExists, 1
  253.             ;kODErrCannotGetExternalLink, kODErrCannotGetExternalLink, 21
  254.  
  255.             ;kODErrNoLinkSpecValue, kODErrNoLinkSpecValue, 1
  256.             ;kODErrUnknownLinkSpecVersion, kODErrUnknownLinkSpecVersion, 1
  257.             ;kODErrCorruptLinkSpecValue, kODErrCorruptLinkSpecValue, 1
  258.             ;kODErrNotExportedLink, kODErrNotExportedLink,  1
  259.             ;kODErrBrokenLink, kODErrBrokenLink,  22
  260.             ;kODErrCannotRevealLink, kODErrCannotRevealLink, 39
  261.             ;kODErrCorruptLink, kODErrCorruptLink, 40
  262.             ;kODErrLinkAlreadyExported, kODErrLinkAlreadyExported, 42
  263.             ;kODErrNotImportedLink, kODErrNotImportedLink,  1
  264.             ;kODErrInvalidLinkKey, kODErrInvalidLinkKey, 1
  265.  
  266.             ;kODErrBrokenLinkSource, kODErrBrokenLinkSource, 23
  267.             ;kODErrCorruptLinkSource, kODErrCorruptLinkSource, 40
  268.             ;kODErrCannotFindLinkSourceEdition, kODErrCannotFindLinkSourceEdition, 41
  269.             ;kODErrCannotFindLinkSource, kODErrCannotFindLinkSource, 55
  270.             ;kODErrAlreadyImportedLink, kODErrAlreadyImportedLink, 42
  271.             ;kODErrDocNotSaved, kODErrDocNotSaved, 24
  272.             ;kODErrNoDragManager, kODErrNoDragManager, 25
  273.             ;kODErrNoDragSystemStorage, kODErrNoDragSystemStorage, 26
  274.             ;kODErrDragItemNotFound, kODErrDragItemNotFound, 56
  275.             ;kODErrCannotAllocateDragItem, kODErrCannotAllocateDragItem, 26
  276.  
  277.             ;kODErrUnknownDragImageType, kODErrUnknownDragImageType, 1
  278.             ;kODErrDragTrackingException, kODErrDragTrackingException, 27
  279.             ;kODErrNullFacetInput, kODErrNullFacetInput, 1
  280.             ;kODErrCannotCreateContainer, kODErrCannotCreateContainer, 1
  281.             ;kODErrCannotOpenContainer, kODErrCannotOpenContainer, 1
  282.             ;kODErrFocusAlreadyRegistered, kODErrFocusAlreadyRegistered,  1
  283.             ;kODErrFocusNotRegistered, kODErrFocusNotRegistered,  1
  284.             ;kODErrIllegalNullDispatchModuleInput, kODErrIllegalNullDispatchModuleInput,  1
  285.             ;kODErrCannotMarkAction, kODErrCannotMarkAction, 1
  286.             ;kODErrEmptyStack, kODErrEmptyStack, 1
  287.  
  288.             ;kODErrNoBeginAction, kODErrNoBeginAction, 1
  289.             ;kODErrCannotAddAction, kODErrCannotAddAction, 1
  290.             ;kODErrCannotCreateWindow, kODErrCannotCreateWindow, 30
  291.             ;kODErrInvalidDestinationDraft,kODErrInvalidDestinationDraft, 1
  292.             ;kODErrInvalidDraftKey, kODErrInvalidDraftKey,1
  293.             ;kODErrCloningInProgress, kODErrCloningInProgress, 1
  294.             ;kODErrIllegalNullTokenInput, kODErrIllegalNullTokenInput, 1
  295.             
  296.             ;kODErrIllegalNullShapeInput, kODErrIllegalNullShapeInput, 1
  297.             ;kODErrIllegalNullStorageUnitInput,kODErrIllegalNullStorageUnitInput, 1
  298.             ;kODErrDoesNotUndo, kODErrDoesNotLink, 4
  299.             ;kODErrPartNotWrapper, kODErrPartNotWrapper, 1
  300.             ;kODErrInvalidPersistentObject,  kODErrInvalidPersistentObject, 1
  301.  
  302.             ;kODErrUndefined, kODErrUndefined, 1
  303.  
  304.             ;kODErrAlreadyNotified, kODErrAlreadyNotified, 1
  305.  
  306.             ;kODErrIllegalNullFacetInput, kODErrIllegalNullFacetInput, 1
  307.             ;kODErrIllegalNullFrameInput, kODErrIllegalNullFrameInput, 1
  308.             ;kODErrIllegalNullContainerInput, kODErrIllegalNullContainerInput, 1
  309.             ;kODErrIllegalNullDocumentInput, kODErrIllegalNullDocumentInput, 1
  310.             ;kODErrIllegalNullDraftInput, kODErrIllegalNullDraftInput, 1
  311.             ;kODErrIllegalNullValueTypeInput, kODErrIllegalNullValueTypeInput, 1
  312.             ;kODErrIllegalNullIDInput, kODErrIllegalNullIDInput, 1
  313.  
  314.             ;kODErrValueOutOfRange, kODErrValueOutOfRange, 1
  315.  
  316.             ;kODErrInsufficientInfoInParams, kODErrInsufficientInfoInParams, 1
  317.  
  318.             ;kODErrInvalidPersistentFormat, kODErrInvalidPersistentFormat, 49
  319.  
  320.             ;kODErrInvalidExtension, kODErrInvalidExtension, 1
  321.             ;kODErrUnknownExtension, kODErrUnknownExtension, 1
  322.  
  323.             ;kODErrRefCountGreaterThanZero, kODErrRefCountGreaterThanZero, 1
  324.  
  325.             ;kODErrIteratorNotInitialized, kODErrIteratorNotInitialized, 1
  326.  
  327.             ;kODErrNoPromises, kODErrNoPromises, 1
  328.             ;kODErrDoesNotDrop, kODErrDoesNotDrop, 1
  329.  
  330.             ;kODErrInvalidNSName, kODErrInvalidNSName, 1
  331.             ;kODErrInvalidNSType, kODErrInvalidNSType, 1
  332.  
  333.             ;kODErrInvalidITextFormat, kODErrInvalidITextFormat, 1
  334.  
  335.             ;kODErrInvalidPlatformShape, kODErrInvalidPlatformShape, 1
  336.  
  337.             ;kODErrFacetNotFound, kODErrFacetNotFound, 1
  338.             ;kODErrCanvasHasNoOwner, kODErrCanvasHasNoOwner, 1
  339.             ;kODErrNotRootFrame, kODErrNotRootFrame, 1
  340.             ;kODErrIllegalRecursiveEmbedding, kODErrIllegalRecursiveEmbedding, 50
  341.             ;kODErrFrameHasFacets, kODErrFrameHasFacets, 1
  342.  
  343.             ;kODErrInvalidLinkStatus, kODErrInvalidLinkStatus, 1
  344.  
  345.             ;kODErrNotAnODToken, kODErrNotAnODToken, 1
  346.             ;kODErrCantCountFromLists, kODErrCantCountFromLists, 51
  347.  
  348.             ;kODErrContainerDoesNotExist, kODErrContainerDoesNotExist, 1
  349.             ;kODErrDocumentDoesNotExist, kODErrDocumentDoesNotExist, 1
  350.             ;kODErrDraftDoesNotExist, kODErrDraftDoesNotExist, 1
  351.             ;kODErrDraftHasBeenDeleted, kODErrDraftHasBeenDeleted, 1
  352.             ;kODErrIllegalOperationOnSU, kODErrIllegalOperationOnSU, 1
  353.             ;kODErrSUValueDoesNotExist, kODErrSUValueDoesNotExist, 1
  354.             ;kODErrIllegalNonTopmostDraft, kODErrIllegalNonTopmostDraft, 1
  355.  
  356.             ;kODErrValueIndexOutOfRange, kODErrValueIndexOutOfRange, 1
  357.             ;kODErrInvalidValueType, kODErrInvalidValueType, 1
  358.             ;kODErrIllegalPropertyName, kODErrIllegalPropertyName, 1
  359.             ;kODErrPropertyDoesNotExist, kODErrPropertyDoesNotExist, 1
  360.             ;kODErrMoveIntoSelf, kODErrMoveIntoSelf, 50
  361.  
  362.             ;kODErrNullDestinationFrame, kODErrNullDestinationFrame, 1
  363.             ;kODErrNoLinkContent, kODErrNoLinkContent, 52
  364.             ;kODErrCannotRegisterDependent, kODErrCannotRegisterDependent, 1
  365.             ;kODErrUnknownUpdateID, kODErrUnknownUpdateID, 1
  366.             ;kODErrCannotEstablishLink, kODErrCannotEstablishLink, 52
  367.             ;kODErrNoEditionManager, kODErrNoEditionManager, 53
  368.             ;kODErrNullLinkInfoInput, kODErrNullLinkInfoInput, 1
  369.             ;kODErrNullLinkInfoResultInput, kODErrNullLinkInfoResultInput, 1
  370.  
  371.             ;kODErrNullPasteAsResultInput, kODErrNullPasteAsResultInput, 1
  372.             ;kODErrBackgroundClipboardClear, kODErrBackgroundClipboardClear, 1
  373.             ;kODErrIllegalClipboardCloneKind, kODErrIllegalClipboardCloneKind, 1
  374.  
  375.             ;kODErrInvalidCommandID, kODErrInvalidCommandID, 1
  376.             ;kODErrNoSysTranslationFacility, kODErrNoSysTranslationFacility, 54
  377.  
  378.             ;kODErrFatalContainerError, kODErrFatalContainerError, 13
  379.             ;kODErrCannotDeferClone, kODErrCannotDeferClone, 1
  380.             ;kODErrCannotFulfillDragPromise, kODErrCannotFulfillDragPromise, 1
  381.             ;kODErrCannotCloneFrame, kODErrCannotCloneFrame, 1
  382.             ;kODErrNullCMIDList, kODErrNoCMIDList, 1
  383.  
  384. /* There should be a Errors.r! */
  385.  
  386. #define dirFulErr -33
  387. #define dskFulErr -34
  388. #define nsvErr -35
  389. #define ioErr -36
  390. #define bdNamErr -37
  391. #define fnfErr -43
  392. #define wPrErr -44
  393. #define fLckdErr -45
  394. #define vLckdErr -46
  395. #define fBsyErr -47
  396. #define dupFNErr -48
  397. #define opWrErr -49
  398. #define permErr -54
  399. #define wrPermErr -61
  400. #define dirNFErr -120
  401. #define memFullErr -108
  402. #define resNotFound -192
  403. #define resFNotFound -193
  404. #define fragLibNotFound -2804
  405. #define fragHadUnresolveds -2807
  406.  
  407.             ;dirFulErr, dirFulErr, 80
  408.             ;dskFulErr, dskFulErr, 81
  409.             ;nsvErr, nsvErr,  82
  410.             ;ioErr, ioErr,  83
  411.             ;bdNamErr, bdNamErr,  84
  412.             ;nsvErr, nsvErr,  85
  413.             ;fnfErr, fnfErr,  86
  414.             ;wPrErr, wPrErr,  87
  415.             ;fLckdErr, fLckdErr,  88
  416.             ;vLckdErr, vLckdErr,  89
  417.             ;fBsyErr, fBsyErr,  90
  418.             ;dupFNErr, dupFNErr,  91
  419.             ;opWrErr, opWrErr,  92
  420.             ;permErr, permErr,  93
  421.             ;wrPermErr, wrPermErr,  94
  422.             ;dirNFErr, dirNFErr,  95
  423.             ;memFullErr, memFullErr,  3
  424.             ;resNotFound, resNotFound,  1
  425.             ;resFNotFound, resFNotFound,  86
  426.             ;fragLibNotFound, fragLibNotFound,  100
  427.             ;fragHadUnresolveds, fragHadUnresolveds,  100
  428.  
  429.  
  430. #if ODDebug
  431.             ;minUtilsErr, maxUtilsErr, 5
  432.             ;minShellErr, maxShellErr, 7
  433.             ;minODBentoErr, maxODBentoErr, 9
  434.             ;minBentoErr, maxBentoErr, 11
  435. #else
  436.             ;minUtilsErr, maxUtilsErr, 1
  437.             ;minShellErr, maxShellErr, 1
  438.             ;minODBentoErr, maxODBentoErr, 11
  439.             ;minBentoErr, maxBentoErr, 11
  440. #endif
  441.             ;minUIErr, maxUIErr, 6
  442.  
  443.             ;kODMinError, kODMinUsedError, 79
  444.  
  445.             ;minErr, maxErr, 2
  446.             
  447.     }
  448. };
  449.  
  450. /* error user explanations */
  451. /*
  452.    DO NOT DELETE ANY STRINGS FROM THE STR# resources. Simply empty them out.
  453.    Like this:   ;""
  454.    This we they don't get renumbered, we don't have to try and fix up the
  455.    'errs' resources to point to the renumbered indexes into the STR# resources.
  456. */
  457.  
  458. resource 'STR#' (kODErrUserIDStrings,purgeable) {
  459.     {        "An unknown error has occurred in OpenDoc or a part editor."
  460. /* 2 */        ;"An unknown error has occurred, probably a part editor error. Try using a different editor."
  461. /* 3 */        ;"Out of memory. Try closing some windows to make more memory available."
  462. /* 4 */        ;"The feature or action you requested is not implemented in this part editor. Try using a different editor."
  463. /* 5 */        ;"A private Utilities error has found its way to the shell. This shouldn't happen. Please file a bug."
  464. #if ODDebug
  465. /* 6 */        ;"A private UI subsystem error has found its way to the shell. This shouldn't happen. Please file a bug."
  466. #else
  467. /* 6 */        ;"An internal error has occurred in OpenDoc's event processing."
  468. #endif
  469. /* 7 */        ;"A private Shell subsystem error has found its way to the shell. This shouldn't happen. Please file a bug."
  470. /* 8 */        ;"The part editor used to create the document doesn’t allow embedding. Try using a different editor."
  471. /* 9 */        ;"A private Bento container suite error has found its way to the shell. This shouldn't happen. Please file a bug."
  472. /* 10 */    ;"You can't change the document because you don't have enough access privileges. See the owner of the document to have your privileges changed or make a copy of the document to make changes to it."
  473.  
  474. /* 11*/        ;"An internal error has occurred in OpenDoc’s document storage system."
  475. /* 12 */    ;"A private Bento error has found its way to the shell. This shouldn't happen. Please file a bug."
  476. /* 13 */    ;"A fatal storage error occurred (probably out of memory or disk space.) The document file is intact, but must close immediately without saving changes. Sorry."
  477. /* 14 */    ;"A permissions error occurred. Perhaps an editor tried to modify a read-only draft or document."
  478. #if ODDebug
  479. /* 15 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  480. #else
  481. /* 15 */    ;""
  482. #endif
  483. /* 16 */    ;"The part editor could not be found. Try reinstalling it."
  484. #if ODDebug
  485. /* 17 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  486. #else
  487. /* 17 */    ;""
  488. #endif
  489. /* 18 */    ;"You can’t delete drafts of this document."
  490. #if ODDebug
  491. /* 19 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  492. /* 20 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  493. #else
  494. /* 19 */    ;""
  495. /* 20 */    ;""
  496. #endif
  497.  
  498. /* 21 */    ;"Can't create the link because the source document has been closed. Try recreating the link."
  499. /* 22 */    ;"The link has unexpectedly broken. Try re-creating the link."
  500. /* 23 */    ;"The connection between the link source and all destinations has unexpectedly been broken. You'll need to re-create all links to the source."
  501. /* 24 */    ;"The link cannot be created until the link source has been saved. Save the document that contains the link source, then try again."
  502. /* 25 */    ;"Drag and Drop is not installed on your computer. Try copying and pasting your information."
  503. /* 26 */    ;"There is not enough memory to drag and drop all these items. Try dragging them one at a time."
  504. /* 27 */    ;"An unknown error occurred while dragging."
  505. #if ODDebug
  506. /* 28 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  507. /* 29 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  508. #else
  509. /* 28 */    ;""
  510. /* 29 */    ;""
  511. #endif
  512. /* 30 */    ;"OpenDoc is out of memory and can’t open any more windows. Try closing some windows to make more memory available."
  513.  
  514. #if ODDebug
  515. /* 31 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  516. /* 32 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  517. #else
  518. /* 31 */    ;""
  519. /* 32 */    ;""
  520. #endif
  521. /* 33 */    ;"The document can't be opened because you don't have the part editor that was used to create the document. Contact the vendor for the part editor."
  522. /* 34 */    ;"Cannot create a new document because every available disk is full."
  523. /* 35 */    ;"Cannot create a new document because the startup disk is full."
  524. /* 36 */    ;"Cannot save a copy of a document onto itself. Give the copy a different name."
  525. /* 37 */    ;"Cannot save a copy onto an open document."
  526. #if ODDebug
  527. /* 38 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  528. #else
  529. /* 38 */    ;""
  530. #endif
  531. /* 39 */    ;"Cannot find the link source because it has been deleted. Try recreating the link."
  532. /* 40 */    ;"There is a problem with this link. Try breaking the link, then creating it again."
  533.  
  534. /* 41 */    ;"There is a problem with the Edition file, an intermediary file which handles links. Try breaking and re-creating the link."
  535. /* 42 */    ;"An OpenDoc linking error occurred. Break and re-create the link. Then close and re-open the document. "
  536. #if ODDebug
  537. /* 43 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  538. /* 44 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  539. #else
  540. /* 43 */    ;""
  541. /* 44 */    ;""
  542. #endif
  543. /* 45 */    ;"The part is in use. Try again later."
  544. /* 46 */    ;"An internal memory error has occurred. Try closing the document, then opening it again."
  545. #if ODDebug
  546. /* 47 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  547. /* 48 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  548. #else
  549. /* 47 */    ;""
  550. /* 48 */    ;""
  551. #endif
  552. /* 49 */    ;"Some data in the document cannot be read because its format is unknown."
  553. /* 50 */    ;"Cannot insert a part within itself."
  554.  
  555. /* 51 */    ;"Cannot process an incoming event (possibly a script)."
  556. /* 52 */    ;"There was a problem creating this link. Please recreate the link."
  557. /* 53 */    ;"A necessary system service, the Edition Manager, is not available in your system software. To get the Edition Manager, upgrade to System Software version 7.0 or later."
  558. /* 54 */    ;"A necessary system service is not available (translation services)."
  559. /* 55 */    ;"Cannot find the link source. Trying breaking and re-creating the link."
  560. /* 56 */    ;"Cannot find the item to be dragged."
  561. #if ODDebug
  562. /* 57 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  563. /* 58 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  564. /* 59 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  565. /* 60 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  566.  
  567. /* 61 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  568. /* 62 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  569. /* 63 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  570. /* 64 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  571. /* 65 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  572. /* 66 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  573. /* 67 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  574. #else
  575. /* 57 */    ;""
  576. /* 58 */    ;""
  577. /* 59 */    ;""
  578. /* 60 */    ;""
  579.  
  580. /* 61 */    ;""
  581. /* 62 */    ;""
  582. /* 63 */    ;""
  583. /* 64 */    ;""
  584. /* 65 */    ;""
  585. /* 66 */    ;""
  586. /* 67 */    ;""
  587. #endif
  588. #if ODDebug
  589. /* 68 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  590. /* 69 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  591. #else
  592. /* 68 */    ;""
  593. /* 69 */    ;""
  594. #endif
  595. /* 70 */    ;"Cannot find the Editors folder. Re-install OpenDoc and your part editors."
  596.  
  597. /* 71 */    ;"Cannot find the OpenDoc Libraries Folder. Re-install OpenDoc."
  598. #if ODDebug
  599. /* 72 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  600. /* 73 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  601. #else
  602. /* 72 */    ;""
  603. /* 73 */    ;""
  604. #endif
  605. /* 74 */    ;"Unable to create new stationery because the part editor could not be found.  "
  606.                 "Please make sure it is installed correctly."
  607. /* 75 */    ;"Cannot save as onto an open document."
  608. #if ODDebug
  609. /* 76 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  610. /* 77 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  611. /* 78 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  612. /* 79 */    ;"Missing an entry for an OpenDoc error code. Please file a bug."
  613. #else
  614. /* 76 */    ;""
  615. /* 77 */    ;""
  616. /* 78 */    ;""
  617. /* 79 */    ;""
  618. #endif
  619. /* 80 */    ;"The directory is full. Try removing files from the folder or starting a new folder."
  620.  
  621. /* 81 */    ;"The disk is full. Try removing files from the disk."
  622. /* 82 */    ;"The disk does not exist."
  623. /* 83 */    ;"There is a hardware problem with the hard disk."
  624. /* 84 */    ;"A bad file name was used. The name may contain special characters that are not allowed. Try using a different name."
  625. /* 85 */    ;"The disk does not exist."
  626. /* 86 */    ;"The file was not found."
  627. /* 87 */    ;"The diskette is locked."
  628. /* 88 */    ;"The file is locked."
  629. /* 89 */    ;"The volume is locked."
  630. /* 90 */    ;"The file is already open."
  631.  
  632. /* 91 */    ;"A file by that name already exists. Use a different name."
  633. /* 92 */    ;"The file is already open."
  634. /* 93 */    ;"Cannot access the file."
  635. /* 94 */    ;"Cannot access the file for writing. The folder or disk may be locked or you may not have privileges to change the file."
  636. /* 95 */    ;"The folder was not found."
  637. #if ODDebug
  638. /* 96 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  639. /* 97 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  640. /* 98 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  641. /* 99 */    ;"Unused slot in messages table. You shouldn't be seeing this message. Please file a bug."
  642. #else
  643. /* 96 */    ;""
  644. /* 97 */    ;""
  645. /* 98 */    ;""
  646. /* 99 */    ;""
  647. #endif
  648. /* 100 */    ;"Cannot find all the necessary shared libraries. Try re-installing OpenDoc."
  649.     }
  650. };
  651.  
  652. /* list mapping exception codes to technical explanations */
  653.  
  654. resource 'errs' (kODErrSupportID,purgeable) {
  655.     {    whichList, 0, kODErrSupportIDStrings
  656.             ;kODErrUndefined, kODErrUndefined, 99
  657.             ;kODErrIllegalNullInput, kODErrIllegalNullInput, 2
  658.             ;kODErrObjectNotInitialized, kODErrObjectNotInitialized, 3
  659.             ;kODErrOutOfMemory, kODErrOutOfMemory, 4
  660.             ;kODErrNotImplemented, kODErrNotImplemented, 5
  661.             ;kODErrSubClassResponsibility, kODErrSubClassResponsibility, 8
  662.             ;kODErrUnsupportedExtension, kODErrUnsupportedExtension, 9
  663.             ;kODErrZeroRefCount, kODErrZeroRefCount, 10
  664.             
  665.             ;kODErrIteratorOutOfSync, kODErrIteratorOutOfSync, 11
  666.             ;kODErrCannotEmbed, kODErrCannotEmbed, 12
  667.             ;kODErrKeyAlreadyExists, kODErrKeyAlreadyExists, 13
  668.             ;kODErrNoShapeGeometry, kODErrNoShapeGeometry, 15
  669.             ;kODErrUnsupportedFramePositionCode, kODErrUnsupportedFramePositionCode, 16
  670.             ;kODErrIllegalNullPartInput, kODErrIllegalNullPartInput, 17
  671.             ;kODErrIllegalNullTransformInput, kODErrIllegalNullTransformInput, 18
  672.             ;kODErrUnsupportedPosCode, kODErrUnsupportedPosCode, 20
  673.             
  674.             ;kODErrInvalidPermissions, kODErrInvalidPermissions, 21
  675.             ;kODErrNoValueAtThatIndex, kODErrNoValueAtThatIndex, 22
  676.             ;kODErrCannotAddProperty, kODErrCannotAddProperty, 23
  677.             ;kODErrUnfocusedStorageUnit, kODErrUnfocusedStorageUnit, 25
  678.             ;kODErrIllegalNullPropertyInput, kODErrIllegalNullPropertyInput, 26
  679.             ;kODErrIllegalNullSUCursorInput, kODErrIllegalNullSUCursorInput, 27
  680.             ;kODErrInvalidStorageUnitRef, kODErrInvalidStorageUnitRef, 28
  681.             ;kODErrInvalidStorageUnitKey, kODErrInvalidStorageUnitKey, 30
  682.             
  683.             ;kODErrStorageUnitNotLocked, kODErrStorageUnitNotLocked, 31
  684.             ;kODErrNoDraftProperties, kODErrNoDraftProperties, 32
  685.             ;kODErrCannotCreateFrame, kODErrCannotCreateFrame, 33
  686.             ;kODErrCannotAcquireFrame, kODErrCannotAcquireFrame, 34
  687.             ;kODErrCannotCreatePart, kODErrCannotCreatePart, 35
  688. /*            ;kODErrCannotAcquirePart, kODErrCannotAcquirePart, 36 */
  689.             ;kODErrCannotCreateLink, kODErrCannotCreateLink, 37
  690.             ;kODErrCannotAcquireLink, kODErrCannotAcquireLink, 38
  691.             ;kODErrInvalidCloneKind, kODErrInvalidCloneKind, 39
  692.             ;kODErrInvalidBelowDraft, kODErrInvalidBelowDraft, 40
  693.             
  694.             ;kODErrCannotCollapseDrafts, kODErrCannotCollapseDrafts, 42
  695.             ;kODErrNonEmptyDraft, kODErrNonEmptyDraft, 43
  696.             ;kODErrNoPreviousDraft, kODErrNoPreviousDraft, 44
  697.             ;kODErrOutstandingDraft, kODErrOutstandingDraft, 45
  698.             ;kODErrInvalidDraftID, kODErrInvalidDraftID, 46
  699.             ;kODErrCannotChangePermissions, kODErrCannotChangePermissions, 47
  700.             ;kODErrContainerExists, kODErrContainerExists, 48
  701.             ;kODErrCannotGetExternalLink, kODErrCannotGetExternalLink, 50
  702.             
  703.             ;kODErrNoLinkSpecValue, kODErrNoLinkSpecValue, 51
  704.             ;kODErrUnknownLinkSpecVersion, kODErrUnknownLinkSpecVersion, 52
  705.             ;kODErrCorruptLinkSpecValue, kODErrCorruptLinkSpecValue, 53
  706.             ;kODErrNotExportedLink, kODErrNotExportedLink, 54
  707.             ;kODErrBrokenLink, kODErrBrokenLink, 55
  708.             ;kODErrNotImportedLink, kODErrNotImportedLink, 56
  709.             ;kODErrBrokenLinkSource, kODErrBrokenLinkSource, 57
  710.             ;kODErrDocNotSaved, kODErrDocNotSaved, 58
  711.             ;kODErrNoDragManager, kODErrNoDragManager, 59
  712.             ;kODErrNoDragSystemStorage, kODErrNoDragSystemStorage, 60
  713.         
  714.             ;kODErrDragItemNotFound, kODErrDragItemNotFound, 61
  715.             ;kODErrCannotAllocateDragItem, kODErrCannotAllocateDragItem, 62
  716.             ;kODErrUnknownDragImageType, kODErrUnknownDragImageType, 63
  717.             ;kODErrDragTrackingException, kODErrDragTrackingException, 64
  718.             ;kODErrFocusAlreadyRegistered, kODErrFocusAlreadyRegistered, 65
  719.             ;kODErrFocusNotRegistered, kODErrFocusNotRegistered, 66
  720.             ;kODErrIllegalNullDispatchModuleInput, kODErrIllegalNullDispatchModuleInput, 67
  721.             ;kODErrCannotMarkAction, kODErrCannotMarkAction, 68
  722.             ;kODErrEmptyStack, kODErrEmptyStack, 69
  723.             ;kODErrNoBeginAction, kODErrNoBeginAction, 70
  724.     
  725.             ;kODErrCannotAddAction, kODErrCannotAddAction, 71
  726.             ;kODErrCannotCreateWindow, kODErrCannotCreateWindow, 72
  727.             ;kODErrInvalidObjectType, kODErrInvalidObjectType,74
  728.             ;kODErrInvalidPersistentObjectID, kODErrInvalidPersistentObjectID, 75
  729.             ;kODErrRefCountNotEqualOne, kODErrRefCountNotEqualOne, 76
  730.             ;kODErrCouldNotBindForeignDocument, kODErrCouldNotBindForeignDocument, 77
  731.             ;kODErrPartInUse, kODErrPartInUse, 78
  732.             ;kODErrAllWritableVolumesAreFull, kODErrAllWritableVolumesAreFull, 79
  733.             ;kODErrSystemVolumeIsFull, kODErrSystemVolumeIsFull, 80
  734.  
  735.             ;kODErrDirectoryNotHaveWriteAccess, kODErrDirectoryNotHaveWriteAccess, 81
  736.             ;kODErrCannotSaveACopyOntoCurrentDoc, kODErrCannotSaveACopyOntoCurrentDoc, 82
  737.             ;kODErrCannotSaveACopyOntoBusyDoc, kODErrCannotSaveACopyOntoBusyDoc, 83
  738.             ;kODErrIllegalNullStorageSystemInput, kODErrIllegalNullStorageSystemInput, 84
  739.             ;kODErrCannotRevealLink, kODErrCannotRevealLink, 85
  740.             ;kODErrCorruptLink, kODErrCorruptLink, 86
  741.             ;kODErrLinkAlreadyExported, kODErrLinkAlreadyExported, 87
  742.             ;kODErrCorruptLinkSource, kODErrCorruptLinkSource, 88
  743.             ;kODErrCannotFindLinkSourceEdition, kODErrCannotFindLinkSourceEdition, 89
  744.             ;kODErrCannotFindLinkSource, kODErrCannotFindLinkSource, 90
  745.  
  746.             ;kODErrAlreadyImportedLink, kODErrAlreadyImportedLink, 91
  747.             ;kODErrNullFacetInput, kODErrNullFacetInput, 92
  748.             ;kODErrInvalidFrame, kODErrInvalidFrame, 97
  749.             ;kODErrInvalidFacet, kODErrInvalidFacet, 98
  750.  
  751.             ;kODErrInvalidGraphicsSystem, kODErrInvalidGraphicsSystem, 101
  752.             ;kODErrTransformErr, kODErrTransformErr, 102
  753.             ;kODErrCanvasNotFound, kODErrCanvasNotFound, 103
  754.             ;kODErrInvalidBlock, kODErrInvalidBlock, 104
  755.             ;kODErrInvalidNSName, kODErrInvalidNSName, 105
  756.             ;kODErrInvalidStorageUnit, kODErrInvalidStorageUnit, 109
  757.  
  758.             ;kODErrInvalidID, kODErrInvalidID, 112
  759.             ;kODErrInconsistentCloneKind, kODErrInconsistentCloneKind, 113
  760.             ;kODErrInvalidLinkKey, kODErrInvalidLinkKey, 114
  761.             ;kODErrCannotCreateContainer, kODErrCannotCreateContainer, 115
  762.             ;kODErrCannotOpenContainer, kODErrCannotOpenContainer, 116
  763.             ;kODErrInvalidDestinationDraft,kODErrInvalidDestinationDraft, 117
  764.             ;kODErrInvalidDraftKey, kODErrInvalidDraftKey, 118
  765.             ;kODErrCloningInProgress, kODErrCloningInProgress, 119
  766.  
  767.             ;kODErrIllegalNullTokenInput, kODErrIllegalNullTokenInput, 121        
  768.             ;kODErrIllegalNullShapeInput, kODErrIllegalNullShapeInput, 122
  769.             ;kODErrIllegalNullStorageUnitInput,kODErrIllegalNullStorageUnitInput, 123
  770.             ;kODErrCannotFindSystemEditorsFolder, kODErrCannotFindSystemEditorsFolder, 124
  771.             ;kODErrCannotFindOpenDocLibrariesFolder, kODErrCannotFindOpenDocLibrariesFolder, 125
  772.             ;kODErrDoesNotUndo, kODErrDoesNotLink, 126
  773.             ;kODErrPartNotWrapper, kODErrPartNotWrapper, 127
  774.             ;kODErrInvalidPersistentObject,  kODErrInvalidPersistentObject, 128
  775.             ;kODErrEditorLibraryNotFound, kODErrEditorLibraryNotFound, 130
  776.             ;kODErrCannotSaveAsOntoBusyDoc, kODErrCannotSaveAsOntoBusyDoc, 131
  777.  
  778.             ;kODErrAlreadyNotified, kODErrAlreadyNotified, 132
  779.  
  780.             ;kODErrIllegalNullFacetInput, kODErrIllegalNullFacetInput, 133
  781.             ;kODErrIllegalNullFrameInput, kODErrIllegalNullFrameInput, 134
  782.             ;kODErrIllegalNullContainerInput, kODErrIllegalNullContainerInput, 135
  783.             ;kODErrIllegalNullDocumentInput, kODErrIllegalNullDocumentInput, 136
  784.             ;kODErrIllegalNullDraftInput, kODErrIllegalNullDraftInput, 137
  785.             ;kODErrIllegalNullValueTypeInput, kODErrIllegalNullValueTypeInput, 138
  786.             ;kODErrIllegalNullIDInput, kODErrIllegalNullIDInput, 139
  787.  
  788.             ;kODErrValueOutOfRange, kODErrValueOutOfRange, 140
  789.  
  790.             ;kODErrInsufficientInfoInParams, kODErrInsufficientInfoInParams, 141
  791.  
  792.             ;kODErrInvalidPersistentFormat, kODErrInvalidPersistentFormat, 142
  793.  
  794.             ;kODErrInvalidExtension, kODErrInvalidExtension, 143
  795.             ;kODErrUnknownExtension, kODErrUnknownExtension, 144
  796.  
  797.             ;kODErrRefCountGreaterThanZero, kODErrRefCountGreaterThanZero, 145
  798.  
  799.             ;kODErrIteratorNotInitialized, kODErrIteratorNotInitialized, 146
  800.  
  801.             ;kODErrNoPromises, kODErrNoPromises, 147
  802.             ;kODErrDoesNotDrop, kODErrDoesNotDrop, 148
  803.  
  804.             ;kODErrInvalidNSName, kODErrInvalidNSName, 149
  805.             ;kODErrInvalidNSType, kODErrInvalidNSType, 150
  806.  
  807.             ;kODErrInvalidITextFormat, kODErrInvalidITextFormat, 151
  808.  
  809.             ;kODErrInvalidPlatformShape, kODErrInvalidPlatformShape, 152
  810.  
  811.             ;kODErrFacetNotFound, kODErrFacetNotFound, 153
  812.             ;kODErrCanvasHasNoOwner, kODErrCanvasHasNoOwner, 154
  813.             ;kODErrNotRootFrame, kODErrNotRootFrame, 155
  814.             ;kODErrIllegalRecursiveEmbedding, kODErrIllegalRecursiveEmbedding, 156
  815.             ;kODErrFrameHasFacets, kODErrFrameHasFacets, 157
  816.  
  817.             ;kODErrInvalidLinkStatus, kODErrInvalidLinkStatus, 158
  818.  
  819.             ;kODErrNotAnODToken, kODErrNotAnODToken, 159
  820.             ;kODErrCantCountFromLists, kODErrCantCountFromLists, 160
  821.  
  822.             ;kODErrContainerDoesNotExist, kODErrContainerDoesNotExist, 161
  823.             ;kODErrDocumentDoesNotExist, kODErrDocumentDoesNotExist, 162
  824.             ;kODErrDraftDoesNotExist, kODErrDraftDoesNotExist, 163
  825.             ;kODErrDraftHasBeenDeleted, kODErrDraftHasBeenDeleted, 164
  826.             ;kODErrIllegalOperationOnSU, kODErrIllegalOperationOnSU, 165
  827.             ;kODErrSUValueDoesNotExist, kODErrSUValueDoesNotExist, 166
  828.             ;kODErrIllegalNonTopmostDraft, kODErrIllegalNonTopmostDraft, 167
  829.  
  830.             ;kODErrValueIndexOutOfRange, kODErrValueIndexOutOfRange, 168
  831.             ;kODErrInvalidValueType, kODErrInvalidValueType, 169
  832.             ;kODErrIllegalPropertyName, kODErrIllegalPropertyName, 170
  833.             ;kODErrPropertyDoesNotExist, kODErrPropertyDoesNotExist, 171
  834.             ;kODErrMoveIntoSelf, kODErrMoveIntoSelf, 172
  835.  
  836.             ;kODErrNullDestinationFrame, kODErrNullDestinationFrame, 173
  837.             ;kODErrNoLinkContent, kODErrNoLinkContent, 174
  838.             ;kODErrCannotRegisterDependent, kODErrCannotRegisterDependent, 175
  839.             ;kODErrUnknownUpdateID, kODErrUnknownUpdateID, 176
  840.             ;kODErrCannotEstablishLink, kODErrCannotEstablishLink, 177
  841.             ;kODErrNoEditionManager, kODErrNoEditionManager, 178
  842.             ;kODErrNullLinkInfoInput, kODErrNullLinkInfoInput, 179
  843.             ;kODErrNullLinkInfoResultInput, kODErrNullLinkInfoResultInput, 180
  844.  
  845.             ;kODErrNullPasteAsResultInput, kODErrNullPasteAsResultInput, 181
  846.             ;kODErrBackgroundClipboardClear, kODErrBackgroundClipboardClear, 182
  847.             ;kODErrIllegalClipboardCloneKind, kODErrIllegalClipboardCloneKind, 183
  848.  
  849.             ;kODErrInvalidCommandID, kODErrInvalidCommandID, 184
  850.             ;kODErrNoSysTranslationFacility, kODErrNoSysTranslationFacility, 206
  851.  
  852.             ;kODErrFatalContainerError, kODErrFatalContainerError, 96
  853.             ;kODErrCannotDeferClone, kODErrCannotDeferClone, 100
  854.             ;kODErrCannotCloneFrame, kODErrCannotCloneFrame, 106
  855.             ;kODErrNullCMIDList, kODErrNullCMIDList, 107
  856.             ;kODErrEmptyCMObjectIDOrList, kODErrEmptyCMObjectIDOrList, 108
  857.             ;kODErrCMObjectIDNotFound, kODErrCMObjectIDNotFound, 111
  858.             ;kODErrNoCMIDList, kODErrNoCMIDList, 207
  859.             ;kODErrCannotFulfillDragPromise, kODErrCannotFulfillDragPromise, 103
  860.  
  861.             ;dirFulErr, dirFulErr, 185
  862.             ;dskFulErr, dskFulErr, 186
  863.             ;nsvErr, nsvErr,  187
  864.             ;ioErr, ioErr,  188
  865.             ;bdNamErr, bdNamErr,  189
  866.             ;nsvErr, nsvErr,  190
  867.             ;fnfErr, fnfErr,  191
  868.             ;wPrErr, wPrErr,  192
  869.             ;fLckdErr, fLckdErr,  193
  870.             ;vLckdErr, vLckdErr,  194
  871.             ;fBsyErr, fBsyErr,  195
  872.             ;dupFNErr, dupFNErr,  196
  873.             ;opWrErr, opWrErr,  197
  874.             ;permErr, permErr,  198
  875.             ;wrPermErr, wrPermErr,  199
  876.             ;dirNFErr, dirNFErr,  200
  877.             ;memFullErr, memFullErr,  201
  878.             ;resNotFound, resNotFound,  202
  879.             ;resFNotFound, resFNotFound,  203
  880.             ;fragLibNotFound, fragLibNotFound,  204
  881.             ;fragHadUnresolveds, fragHadUnresolveds,  205
  882.  
  883.  
  884.             ;minUtilsErr, maxUtilsErr, 24
  885.             ;minShellErr, maxShellErr, 29
  886.             ;minODBentoErr, maxODBentoErr, 41
  887.             ;minBentoErr, maxBentoErr, 49
  888.             ;minUIErr, maxUIErr, 95
  889.  
  890.             ;kODMinError, kODMinUsedError, 1
  891.  
  892.             ;minErr, maxErr, 210
  893.     }
  894. };
  895.  
  896. /* error technical explanations */
  897. /*
  898.    DO NOT DELETE ANY STRINGS FROM THE STR# resources. Simply empty them out.
  899.    Like this:   ;""
  900.    This we they don't get renumbered, we don't have to try and fix up the
  901.    'errs' resources to point to the renumbered indexes into the STR# resources.
  902. */
  903.  
  904. resource 'STR#' (kODErrSupportIDStrings,purgeable) {
  905.     {     "Unknown OpenDoc error. No name available. Please file a bug."
  906.         ,"kODErrIllegalNullInput"
  907.         ,"kODErrObjectNotInitialized"
  908.         ,"kODErrOutOfMemory"
  909.         ,"kODErrNotImplemented"
  910.         ,"kODErrReadErr"
  911.         ,"kODErrWriteErr"
  912.         ,"kODErrSubClassResponsibility"
  913.         ,"kODErrUnsupportedExtension"
  914. /* 10 */,"kODErrZeroRefCount"
  915.         
  916.         ,"kODErrIteratorOutOfSync"
  917.         ,"kODErrCannotEmbed"
  918.         ,"kODErrKeyAlreadyExists"
  919.         ,"kODErrWrongNameSpaceType"
  920.         ,"kODErrNoShapeGeometry"
  921.         ,"kODErrUnsupportedFramePositionCode"
  922.         ,"kODErrIllegalNullPartInput"
  923.         ,"kODErrIllegalNullTransformInput"
  924.         ,"kODErrPartHasNoSemanticInterface"
  925. /* 20 */,"kODErrUnsupportedPosCode"
  926.         
  927.         ,"kODErrInvalidPermissions"
  928.         ,"kODErrNoValueAtThatIndex"
  929.         ,"kODErrCannotAddProperty"
  930.         ,"Private Utilities error."
  931.         ,"kODErrUnfocusedStorageUnit"
  932.         ,"kODErrIllegalNullPropertyInput"
  933.         ,"kODErrIllegalNullSUCursorInput"
  934.         ,"kODErrInvalidStorageUnitRef"
  935.         ,"Private Shell error."
  936. /* 30 */,"kODErrInvalidStorageUnitKey"
  937.         
  938.         ,"kODErrStorageUnitNotLocked"
  939.         ,"kODErrNoDraftProperties"
  940.         ,"kODErrCannotCreateFrame"
  941.         ,"kODErrCannotAcquireFrame"
  942.         ,"kODErrCannotCreatePart"
  943.         ,"Unused message slot. Please report this."
  944.         ,"kODErrCannotCreateLink"
  945.         ,"kODErrCannotAcquireLink"
  946.         ,"kODErrInvalidCloneKind"
  947. /* 40 */,"kODErrInvalidBelowDraft"
  948.         
  949.         ,"Private Bento container suite error."
  950.         ,"kODErrCannotCollapseDrafts"
  951.         ,"kODErrNonEmptyDraft"
  952.         ,"kODErrNoPreviousDraft"
  953.         ,"kODErrOutstandingDraft"
  954.         ,"kODErrInvalidDraftID"
  955.         ,"kODErrCannotChangePermissions"
  956.         ,"kODErrContainerExists"
  957.         ,"Private Bento error."
  958. /* 50 */,"kODErrCannotGetExternalLink"
  959.         
  960.         ,"kODErrNoLinkSpecValue"
  961.         ,"kODErrUnknownLinkSpecVersion"
  962.         ,"kODErrCorruptLinkSpecValue"
  963.         ,"kODErrNotExportedLink"
  964.         ,"kODErrBrokenLink"
  965.         ,"kODErrNotImportedLink"
  966.         ,"kODErrBrokenLinkSource"
  967.         ,"kODErrDocNotSaved"
  968.         ,"kODErrNoDragManager"
  969. /* 60 */,"kODErrNoDragSystemStorage"
  970.         
  971.         ,"kODErrDragItemNotFound"
  972.         ,"kODErrCannotAllocateDragItem"
  973.         ,"kODErrUnknownDragImageType"
  974.         ,"kODErrDragTrackingException"
  975.         ,"kODErrFocusAlreadyRegistered"
  976.         ,"kODErrFocusNotRegistered"
  977.         ,"kODErrIllegalNullDispatchModuleInput"
  978.         ,"kODErrCannotMarkAction"
  979.         ,"kODErrEmptyStack"
  980. /* 70 */,"kODErrNoBeginAction"
  981.         
  982.         ,"kODErrCannotAddAction"
  983.         ,"kODErrCannotCreateWindow"    
  984.         ,"kODErrSOMException"
  985.         ,"kODErrInvalidObjectType"
  986.         ,"kODErrInvalidPersistentObjectID"
  987.         ,"kODErrRefCountNotEqualOne"
  988.         ,"kODErrCoundNotBindForeignDocument"
  989.         ,"kODErrPartInUse"
  990.         ,"kODErrAllWritableVolumesAreFull"
  991. /* 80 */,"kODErrSystemVolumeIsFull"
  992.  
  993.         ,"kODErrDirectoryNotHaveWriteAccess"
  994.         ,"kODErrCannotSaveACopyOntoCurrentDoc"
  995.         ,"kODErrCannotSaveACopyOntoBusyDoc"
  996.         ,"kODErrIllegalNullStorageSystemInput"
  997.         ,"kODErrCannotRevealLink"
  998.         ,"kODErrCorruptLink"
  999.         ,"kODErrLinkAlreadyExported"
  1000.         ,"kODErrCorruptLinkSource"
  1001.         ,"kODErrCannotFindLinkSourceEdition"
  1002. /* 90 */,"kODErrCannotFindLinkSource"
  1003.  
  1004.         ,"kODErrAlreadyImportedLink"
  1005.         ,"kODErrNullFacetInput"
  1006.         ,"kODErrFileClosed"
  1007.         ,"kODErrFileOpened"
  1008.         ,"Private UI error."
  1009.         ,"kODErrFatalContainerError"
  1010.         ,"kODErrInvalidFrame"
  1011.         ,"kODErrInvalidFacet"
  1012.         ,"kODErrUndefined"
  1013. /*100 */,"kODErrCannotDeferClone"
  1014.  
  1015.         ,"kODErrInvalidGraphicsSystem"
  1016.         ,"kODErrTransformErr"
  1017.         ,"kODErrCannotFulfillDragPromise"
  1018.         ,"kODErrMemoryProblem"
  1019.         ,"kODErrInvalidNSName"
  1020.         ,"kODErrCannotCloneFrame"
  1021.         ,"kODErrNullCMIDList"
  1022.         ,"kODErrEmptyCMObjectIDOrList"
  1023.         ,"kODErrInvalidStorageUnit"
  1024. /*110 */,"kODErrInvalidType"
  1025.  
  1026.         ,"kODErrCMObjectIDNotFound"
  1027.         ,"kODErrInvalidID"
  1028.         ,"kODErrInconsistentCloneKind"
  1029.         ,"kODErrInvalidLinkKey"
  1030.         ,"kODErrCannotCreateContainer"
  1031.         ,"kODErrCannotOpenContainer"    
  1032.         ,"kODErrInvalidDestinationDraft"    
  1033.         ,"kODErrInvalidDraftKey"    
  1034.         ,"kODErrCloningInProgress"    
  1035. /*120 */,"kODErrNoDocumentProperties"    
  1036.  
  1037.         ,"kODErrIllegalNullTokenInput"    
  1038.         ,"kODErrIllegalNullShapeInput"    
  1039.         ,"kODErrIllegalNullStorageUnitInput"    
  1040.         ,"kODErrCannotFindSystemEditorsFolder"    
  1041.         ,"kODErrCannotFindOpenDocLibrariesFolder"    
  1042.         ,"kODErrDoesNotUndo"    
  1043.         ,"kODErrPartNotWrapper"    
  1044.         ,"kODErrInvalidPersistentObject"    
  1045.         ,"kODErrCantLoadSOMClass"
  1046. /*130 */,"kODErrEditorLibraryNotFound"
  1047.  
  1048.          ,"kODErrCannotSaveAsOntoBusyDoc"
  1049.          ,"kODErrAlreadyNotified"
  1050.          ,"kODErrIllegalNullFacetInput"
  1051.          ,"kODErrIllegalNullFrameInput"
  1052.          ,"kODErrIllegalNullContainerInput"
  1053.          ,"kODErrIllegalNullDocumentInput"
  1054.          ,"kODErrIllegalNullDraftInput"
  1055.          ,"kODErrIllegalNullValueTypeInput"
  1056.          ,"kODErrIllegalNullIDInput"
  1057. /*140 */,"kODErrValueOutOfRange"
  1058.  
  1059.         ,"kODErrInsufficientInfoInParams"
  1060.          ,"kODErrInvalidPersistentFormat"
  1061.          ,"kODErrInvalidExtension"
  1062.          ,"kODErrUnknownExtension"
  1063.          ,"kODErrRefCountGreaterThanZero"
  1064.          ,"kODErrIteratorNotInitialized"
  1065.          ,"kODErrNoPromises"
  1066.          ,"kODErrDoesNotDrop"
  1067.          ,"kODErrInvalidNSName"
  1068. /*150 */,"kODErrInvalidNSType"
  1069.  
  1070.          ,"kODErrInvalidITextFormat"
  1071.         ,"kODErrInvalidPlatformShape"
  1072.          ,"kODErrFacetNotFound"
  1073.          ,"kODErrCanvasHasNoOwner"
  1074.          ,"kODErrNotRootFrame"
  1075.          ,"kODErrIllegalRecursiveEmbedding"
  1076.          ,"kODErrFrameHasFacets"
  1077.          ,"kODErrInvalidLinkStatus"
  1078.          ,"kODErrNotAnODToken"
  1079. /*160 */ ,"kODErrCantCountFromLists"
  1080.  
  1081.          ,"kODErrContainerDoesNotExist"
  1082.          ,"kODErrDocumentDoesNotExist"
  1083.         ,"kODErrDraftDoesNotExist"
  1084.          ,"kODErrDraftHasBeenDeleted"
  1085.          ,"kODErrIllegalOperationOnSU"
  1086.          ,"kODErrSUValueDoesNotExist"
  1087.          ,"kODErrIllegalNonTopmostDraft"
  1088.          ,"kODErrValueIndexOutOfRange"
  1089.          ,"kODErrInvalidValueType"
  1090. /*170 */,"kODErrIllegalPropertyName"
  1091.  
  1092.          ,"kODErrPropertyDoesNotExist"
  1093.          ,"kODErrMoveIntoSelf"
  1094.          ,"kODErrNullDestinationFrame"
  1095.         ,"kODErrNoLinkContent"
  1096.          ,"kODErrCannotRegisterDependent"
  1097.          ,"kODErrUnknownUpdateID"
  1098.          ,"kODErrCannotEstablishLink"
  1099.          ,"kODErrNoEditionManager"
  1100.          ,"kODErrNullLinkInfoInput"
  1101. /*180 */,"kODErrNullLinkInfoResultInput"
  1102.  
  1103.         ,"kODErrNullPasteAsResultInput"
  1104.          ,"kODErrBackgroundClipboardClear"
  1105.          ,"kODErrIllegalClipboardCloneKind"
  1106.          ,"kODErrInvalidCommandID"
  1107.         ,"dirFulErr"
  1108.         ,"dskFulErr"
  1109.         ,"nsvErr"
  1110.         ,"ioErr"
  1111.         ,"bdNamErr"
  1112. /*190 */,"nsvErr"
  1113.  
  1114.         ,"fnfErr"
  1115.         ,"wPrErr"
  1116.         ,"fLckdErr"
  1117.         ,"vLckdErr"
  1118.         ,"fBsyErr"
  1119.         ,"dupFNErr"
  1120.         ,"opWrErr"
  1121.         ,"permErr"
  1122.         ,"wrPermErr"
  1123. /*200 */,"dirNFErr"
  1124.  
  1125.         ,"memFullErr"
  1126.         ,"resNotFound"
  1127.         ,"resFNotFound"
  1128.         ,"fragLibNotFound"
  1129.         ,"fragHadUnresolveds"
  1130.         ,"kODErrNoSysTranslationFacility"
  1131.         ,"kODErrNoCMIDList"
  1132.         ,"Unused message slot. Please report this."
  1133.         ,"Unused message slot. Please report this."
  1134. /*210 */,"Unknown error, outside of OpenDoc error range. No name available."
  1135.     }
  1136. };
  1137.  
  1138.  
  1139.